﻿<Page x:Class="PhotosPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:winforms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    xmlns:vemap="clr-namespace:SpatialAlbum.VirtualEarthMap;assembly=SpatialAlbum.VirtualEarthMap"
    xmlns:my="clr-namespace:SpatialAlbum.WPF"
    Title="Photos">
    <DockPanel Style="{StaticResource AppFont}">
        <TextBlock DockPanel.Dock="Top" Style="{StaticResource PageTitle}">Photos</TextBlock>
        <my:AlbumSelectorControl DockPanel.Dock="Bottom" x:Name="AlbumSelectorControl1" MinHeight="40" Width="350"/>

        <Border BorderBrush="Blue" BorderThickness="0">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="1*"/>
                    <RowDefinition Height="10px"/>
                    <RowDefinition Height="2*"/>
                </Grid.RowDefinitions>

                <GridSplitter Grid.Row="1" Grid.ColumnSpan="2"
                    HorizontalAlignment="Stretch"
                    VerticalAlignment="Center"
                    ShowsPreview="True"
                    Height="8"/>

                <my:MyGridCell Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" BorderBrush="White" BorderThickness="1">
                    <my:MyGridCell.MinorContent>
                        <!--<Label>hello</Label>-->
                        <my:DatabaseGridControl x:Name="minorDatabaseGrid"/>
                    </my:MyGridCell.MinorContent>
                    <TabControl>
                        <TabItem Header="Grid">
                            <my:DatabaseGridControl x:Name="majorDatabaseGrid"/>
                        </TabItem>
                        <TabItem Header="Details">
                            <my:DatabaseListControl x:Name="minorDatabaseList"/>
                        </TabItem>
                    </TabControl>
                </my:MyGridCell>

                <my:MyGridCell Grid.Row="2" Grid.Column="0" BorderBrush="White" BorderThickness="1">
                    <my:MyGridCell.MinorContent>
                        <my:MapViewControl x:Name="minorMap" AutoResizeMap="False" ShowControlsOnMap="True"/>
                    </my:MyGridCell.MinorContent>
                    <my:MapViewControl x:Name="majorMap" AutoResizeMap="False" ShowControlsOnMap="True"/>
                </my:MyGridCell>

                <my:MyGridCell Grid.Row="2" Grid.Column="1" BorderBrush="White" BorderThickness="1" HorizontalAlignment="Center">
                    <my:MyGridCell.MinorContent>
                        <Image Name="minorImage" Stretch="Uniform"></Image>
                    </my:MyGridCell.MinorContent>
                    <my:ImageThumbnailList/>
                </my:MyGridCell>
            </Grid>
        </Border>

    </DockPanel>
</Page>
